package com.example.auth.api;

import com.example.auth.response.Result;
import com.example.auth.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/menus")
public class MenuController {

    @Autowired
    private MenuService menuService;

    @GetMapping("getMenusByScopes")
    public Result getMenusByScopes(@RequestParam List<String> scopes) {
        return menuService.getMenusByScopes(scopes);
    }
}
